<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of VMT_MeanXS2GE</title>
  <meta name="keywords" content="VMT_MeanXS2GE">
  <meta name="description" content="Outputs the mean cross section (plan view) from VMT to Google Earth">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- menu.html trunk -->
<h1>VMT_MeanXS2GE
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Outputs the mean cross section (plan view) from VMT to Google Earth</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function VMT_MeanXS2GE(A,V,pathstr,filestr) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Outputs the mean cross section (plan view) from VMT to Google Earth
 (saved as a .kmz file in the VMTProcFiles directory).  The file is then
 opened in Google Earth is for viewing.

 P.R. Jackson, USGS, 1-16-09</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function VMT_MeanXS2GE(A,V,pathstr,filestr)</a>
0002 <span class="comment">% Outputs the mean cross section (plan view) from VMT to Google Earth</span>
0003 <span class="comment">% (saved as a .kmz file in the VMTProcFiles directory).  The file is then</span>
0004 <span class="comment">% opened in Google Earth is for viewing.</span>
0005 <span class="comment">%</span>
0006 <span class="comment">% P.R. Jackson, USGS, 1-16-09</span>
0007 
0008 
0009 <span class="comment">%Output the mean cross section to Google Earth</span>
0010 
0011 <span class="comment">%lncol = ['-r';'-b';'-g';'-c';'-m';'-y';'-k';'-w'];</span>
0012 gex = nanmean(V.mcsX,1);
0013 gey = nanmean(V.mcsY,1);
0014 utmzonemat = repmat(A(1).Comp.utmzone(2,:),size(gex')); <span class="comment">%</span>
0015 [mcslat,mcslon] = utm2deg(gex',gey',utmzonemat);
0016 <span class="keyword">if</span> ~isempty(pathstr)
0017     outfile = [pathstr <span class="string">'\'</span> filestr(1:end-4)];
0018 <span class="keyword">else</span>
0019     outfile = [filestr(1:end-4)];
0020 <span class="keyword">end</span>
0021 GEplot(outfile,mcslat,mcslon); <span class="comment">%lncol(n,:)</span>
0022 eval([<span class="string">'!'</span> outfile <span class="string">'.kmz'</span>])</pre></div>
<hr><address>Generated on Tue 30-Apr-2013 10:18:12 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>